package com.junit;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.rcd.dao.INewsDao;
import com.rcd.dao.IProductDao;
import com.rcd.manager.dao.IProductManagerDao;
import com.rcd.vo.Product;

import junit.framework.TestCase;

public class IProductDaoimplTest extends TestCase {

	private static ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext-*.xml");
	public void testAddProduct() {
		IProductManagerDao dao = null;
		dao = (IProductManagerDao)applicationContext.getBean("productDaomanager");
		//INewsDao dao = (INewsDao)applicationContext.getBean("productDaoimpl");
		System.err.println(dao);
		
		
		Product product = new Product();
		product.setPname("a`du");
		dao.addProduct(product);
	}

	public void testDelProduct() {
		fail("Not yet implemented");
	}

	public void testFindAll() {
		fail("Not yet implemented");
	}

	public void testFindByPid() {
		fail("Not yet implemented");
	}

	public void testGetAllSize() {
		fail("Not yet implemented");
	}

	public void testUpdateProduct() {
		fail("Not yet implemented");
	}

}
